package operation;

import Book.Book;
import Book.BookList;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-11-02
 * Time: 11:00
 */
public class ExitBook implements IOPeration{
    @Override
    public void work(BookList bookList) {
        System.out.println("退出系统....");
        int currSize = bookList.getUsedSize();
        for (int i = 0; i < currSize; i++) {
            bookList.setBooks(i,null);
        }
        System.exit(0);
    }
}
